package service;

import common.Result;
import org.springframework.security.core.userdetails.UserDetailsService;
import pojo.User;

import java.io.IOException;
import java.util.List;

/**
 * className:UserService
 * Package:service
 * Description:
 *
 * @Date: 2022/8/6 23:23
 * @Auther: wssky19890629@163.com
 */

public interface UserService extends UserDetailsService {
    public String registor(User user) throws Exception;

    public Result<Object> modifyNickname(User user,String newName);

    public void setMsgtoRedis(String myUserId,String hisUserId,String msg);

    public List<String> getMsgFromRedis(String myUserId,String hisUserId);
}
